public class Max{
	
	
	public static void main(String[] args){
	      int[] arr = new int[] {3, 5, 6, 9};
		  int max = 0;
		  int i;
		  for(i = 0; i < arr.length; i++){
				if (arr[i] > max){
					max = arr[i];
				}
		  
		  }
		  System.out.println(max);
	}
	
}